<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-heading"><h4>新增门店</h4></div>
            <div class="panel-body">
                <form action="" class="form-horizontal row-border"  data-validate="parsley" id="validate-form">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="name">门店名称:</label>
                        <div class="col-sm-6">
                            <input type="text" name="shop_name" id="shop_name" required="required" placeholder="门店名称" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                    		<label class="col-sm-3 control-label" >上级门店:</label>
                    		<div class="col-sm-6">
                    			<select class="form-control" name="parent_id" id="parent_id">
                    				<option value="0">无</option>
                    				{foreach name="parents" item="v"}
                    					<option value="{$v.id}">{$v.shop_name}</option>
                    				{/foreach}                    				
                    			</select>
                    		</div>
                    </div>
                    <div class="form-group">
                    		<label class="col-sm-3 control-label" for="mobile">api版本:</label>
                    		<div class="col-sm-6">
                    			<select class="form-control" name="api_version" id="api_version">
                    				<option value=''>无</option>
                    				{foreach name="apis" item="v"}
                    				<option value="{$v.api_version}">{$v.name}</option>
                    				{/foreach}
                    			</select>
                    		</div>
                    </div>
                    <div class="form-group" id="div1" hidden="hidden">
                        <label class="col-sm-3 control-label">门店管理员账号:</label>
                        <div class="col-sm-6">
                            <input type="text" name="account" id="account"   placeholder="门店管理员账号" class="form-control">
                        </div>
                    </div>
                    <div class="form-group" id="div2" hidden="hidden">
                        <label class="col-sm-3 control-label"  >门店管理员密码:</label>
                        <div class="col-sm-6">
                            <input type="text" name="password" id="password"  placeholder="门店管理员密码" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                    	<label class="col-sm-3 control-label">接口配置代码</label>
                    	<div class="col-sm-6">
                    		<textarea class="form-control" style="min-height: 200px;" id="template" name="extra_config"></textarea>
                    	</div>
                    </div>
                </form>
            </div>
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <div class="btn-toolbar">
                            <button class="btn-primary btn" id="form-submit">提交</button>
                            <button class="btn-default btn" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.ADMIN_VIEW_JS}shop/add.js'></script>